Bug 586374 – code does not follow documentation
authorKristian Rietveld <kris@gtk.org>
Thu, 30 Jul 2009 19:23:47 +0000 (21:23 +0200)
committerKristian Rietveld <kris@gtk.org>
Thu, 30 Jul 2009 19:23:47 +0000 (21:23 +0200)
commitd743b2fbeab01f9a9904712a5b751afd0519696d
tree40898f95eed2843d04e6abee707a7841b0317251
parenta79ef0866bb14a31ad789c4a8750f66ec1d7ad64
Bug 586374 – code does not follow documentation

Properly invalidate iterators in iter_next, iter_children,
iter_nth_child and iter_parent when FALSE is returned.  ListStore was
actually already mostly in order as the GSequence pointers are very
strictly checked, but to be a little stricter we've added stamp = 0
lines.  TreeStore did not invalidate its iterators, so stamp = 0 lines
were added where appropriate.  Unit tests have been added to check this.

Fixes bug 586374, reported by Mike Gemunde.
gtk/gtkliststore.c
gtk/gtktreestore.c
gtk/tests/liststore.c
gtk/tests/treestore.c